<?php
namespace api\test\model;

use think\Model;

Class ClassModel extends Model
{
    protected $name = 'class';
    public function student ()
    {
        return $this->hasMany('StudentModel','class_id','id');
    }
}